/*
 *  Copyright © 2011 by Rob Cash
 * 
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 * 
 *       http://www.apache.org/licenses/LICENSE-2.0
 * 
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 * 
 * FeatureSupport.java
 * 
 * Created on Jun 21, 2011 at 7:27:11 PM
 */
package org.robcash.apps.bookmarksync.provider.spi;

/**
 * Indicator that a specific feature is supported or not
 */
public class FeatureSupport
{

    private boolean enabled;
    private FeatureName name;

    /**
     * Indicates if the feature is supported or not
     * @return {@true} indicates that the feature is supported
     */
    public boolean isEnabled()
    {
        return enabled;
    }

    /**
     * Enable or disable support for the feature
     * @param value {@true} indicates that the feature is supported
     */
    public void setEnabled(boolean value)
    {
        this.enabled = value;
    }

    /**
     * Get the feature name
     * @return Feature name
     */
    public FeatureName getName()
    {
        return name;
    }

    /**
     * Sets the name of the feature
     * @param name Feature name
     */
    public void setName(FeatureName name)
    {
        this.name = name;
    }
    
}
